﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using Sern.Abstracts.Common;
using Sern.Abstracts.Tracker.DataContracts;

namespace Sern.Abstracts.Tracker.ServiceContracts
{
    /// <summary>
    /// The logging is a seperate function of the tracker services, in that performance is not as crucial here. The other monitoring functions are needed for real time processing.
    /// </summary>
    [ServiceContract]
    public interface ITrackerLogging
    {
        /// <summary>
        /// Log emission. All call to others must be of type map reduce dto.
        /// </summary>
        /// <param name="emission"></param>
        [OperationContract(Name = "LogEmissionTrace", IsOneWay = true)]        
        void Log(EmissionTrace emissionTrace);

        [OperationContract(Name = "LogMessage", IsOneWay = true)]       
        void Log(LogEntry entry);
    }
}
